package com.xiangge.supermarket.service.impl;

import com.xiangge.supermarket.dao.impl.DaoImpl;
import com.xiangge.supermarket.entity.Member;
import com.xiangge.supermarket.service.SupermarketService;

public class ServiceImpl implements SupermarketService {

    public static final DaoImpl daoImpl = new DaoImpl();
    public static final Member member = new Member();

    @Override
    public boolean add(Member member) {
        return daoImpl.add(member);
    }

    @Override
    public boolean delete(String id) {
        return daoImpl.delete(member.getId());
    }

    @Override
    public boolean update(Member member) {
        return daoImpl.update(member);
    }

    @Override
    public int findById(String id) {
        return 0;
    }

    @Override
    public void findAll() {
        daoImpl.findAll();
    }
}
